@import "~choerodon-ui/lib/style/themes/default";

.c7ncd-appService-outline {
  font-size: 0.16rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.2rem 0.1rem;
  margin: 0 -0.2rem 0.2rem;
}

.fontCss {
  border-radius: 4px;
  border: 1px solid #d9e6f2;
  color: #0f1358;
}

.c7ncd-appService-create-wrap {
  .c7ncd-test-connect-result-failed,
  .c7ncd-test-connect-result-success,
  .c7ncd-test-connect-result-loading {
    flex: 1;
    margin-left: 10px;
  }
  .testConnect {
    display: flex;
    align-items: center;
  }
  .c7n-pro-form-float.c7n-pro-form-float .c7n-pro-select-box-wrapper {
    line-height: 0 !important;
    padding-top: 0 !important;
    margin-bottom: -15px !important;
  }
  .create-tips {
    margin-bottom: 8px;
  }
  .type-select,
  .approveConfig-select {
    .c7n-pro-select-box {
      width: 90% !important;
      display: flex;
      justify-content: space-between;
    }
  }
  .customSelect-wrapper {
    display: flex;
    justify-content: space-between;
    .customSelect-item {
      padding: 10px 20px;
      font-size: 13px;
      font-weight: 500;
      .fontCss();
    }
    .customSelect-authType-item {
      .fontCss();
      padding: 10px;
      .title {
        font-size: 13px;
        font-weight: 500;
        color: #0f1358;
        margin-bottom: 10px;
      }
      .content {
        font-size: 12px;
        font-weight: 400;
        color: rgba(15, 19, 88, 0.65);
      }
    }
  }
  .outGitlab-alert {
    width: auto;
    height: auto;
    font-size: 13px;
    color: rgba(15, 19, 88, 0.85);
  }
  .c7ncd-customSelect-container {
    width: 48%;
  }
  .c7ncd-appService-create {
    &-img {
      width: 0.8rem;
      height: 0.8rem;
      border-radius: 50%;
      margin: 0 auto;
      background-size: cover;
      position: relative;

      .create-img-mask {
        background: rgba(0, 0, 0, 0.26);
        border-radius: 50%;
      }

      .create-img-icon {
        font-size: 0.3rem;
        margin: 0.25rem;
        color: white;
      }

      &:hover {
        cursor: pointer;
      }
    }

    &-avatar {
      width: 0.8rem;
      height: 0.8rem;
      line-height: 0.8rem;
      background-color: white;
    }

    &-text {
      color: var(--text-color4);
      text-align: center;
      line-height: 0.2rem;
      margin: 0.06rem 0 0.2rem;
    }
  }

  &-template {
    &-outTitle,
    &-title {
      .c7ncd-appService-outline();
    }
    &-title {
      border-top: 1px solid #d8d8d8;
    }

    &-icon {
      font-size: 0.24rem;
      margin-left: auto;

      &:hover {
        cursor: pointer;
      }
    }
  }

  &-form {
    .c7n-pro-radio-wrapper:nth-child(1) {
      margin-right: 100px;
    }
    .c7n-pro-radio-wrapper:nth-child(3) {
      margin-right: 113px;
    }
  }

  // Todo: 让UI更改，不要覆盖UI样式
  .c7n-pro-validation-message {
    white-space: normal;
  }
}

.c7ncd-select-option-loading {
  width: calc(100% + 0.24rem);
  margin: -0.04rem 0;
  margin-left: -0.12rem;
  text-align: center;
  background: #fff;
}
